/**
 * 
 */
package sqs.model;

import java.util.ArrayList;
import java.util.List;


/**
 * @author kjleng
 *
 */
public class RatingQuestionAnswer extends Answer {
	private RatingOptionAnswer ratingOptionAnswer= new RatingOptionAnswer();
	private List<RatingOptionAnswer> ratingOptionAnswers;
	public void setNumericValue(int val){}
	public int getNumericValue(){
		return 0;
	}
	public List<Option> getOptions(){
		List<Option> options = new ArrayList<Option>();
		Option option = ratingOptionAnswer.getRatingOption();
		System.out.println("!!!!!!!option = " +option);
		System.out.println("!!!!!!!option in question ans = " +option.getRating());
		options.add(option);		 
		return options;
	}
	
	public void addOption(Option option){
		ratingOptionAnswer.setRatingOption((RatingOption)option);
		ratingOptionAnswers = new ArrayList<RatingOptionAnswer>();
		ratingOptionAnswers.add(ratingOptionAnswer);
	}
	
	public RatingOptionAnswer getRatingOptionAnswer() {
		return ratingOptionAnswer;
	}

	public void setRatingOptionAnswer(RatingOptionAnswer ratingOptionAnswer) {
		this.ratingOptionAnswer = ratingOptionAnswer;
	}

	public List<RatingOptionAnswer> getRatingOptionAnswers() {
		return ratingOptionAnswers;
	}

	public void setRatingOptionAnswers(List<RatingOptionAnswer> ratingOptionAnswers) {
		ratingOptionAnswer = ratingOptionAnswers.get(0);
		this.ratingOptionAnswers = ratingOptionAnswers;
	}

	
}
